﻿@model PlmSpecialtyLogViewModel
@{
    Layout = null;
    ViewBag.Title = "专业监理日志添加";
}

<form method="post" action="/PlmSpecialtyLog/SpecialtyLogAddHandle" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone)">
    @Html.HiddenFor(m => m.OperationType, new { Value = @ViewBag.OperationType })
    @Html.HiddenFor(model => model.ThePlmSpecialtylog.Sl_ID)
    <div class="pageContent">
        <div class="pageFormContent sortDrag" layouth="55">
            <table width="98%" class="tab012">
                <tr>
                    <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">专业监理日志</td>
                </tr>
                <tr style="display: none">
                    <td>操作人：</td>
                    <td>
                        @Html.TextBoxFor(m => m.ThePlmSpecialtylog.Sl_UserName, new { @readonly = "true", Value = "管理员" })
                    </td>

                    <td>操作日期：</td>
                    <td>
                        @Html.TextBoxFor(m => m.ThePlmSpecialtylog.Sl_UpdateTime, new { @readonly = "true", Value = @DateTime.Now.ToString("yyyy-MM-dd") })
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">标段：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSpecialtylog.Sl_ContractNumber
                    </td>
                    <td class="td1" style="width: 24%">专业职位：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSpecialtylog.Sl_SpecialtyPosition
                    </td>
                </tr>

                <tr>
                    <td class="td1" style="width: 24%">记录人：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSpecialtylog.Sl_RecordUser
                    </td>
                    <td class="td1" style="width: 24%">记录日期：</td>
                    <td class="td2" style="width: 26%">
                        @(Model.ThePlmSpecialtylog.Sl_RecordDate == null ? "" : Convert.ToDateTime(Model.ThePlmSpecialtylog.Sl_RecordDate).ToString("yyyy-MM-dd"))
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">监理单位：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSpecialtylog.Sl_SupervisorName
                    </td>
                    <td class="td1" style="width: 24%">监理范围：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSpecialtylog.Sl_SupervisorScope
                    </td>
                </tr>
                <tr>
                    <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">监理日志</td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">监理日志编号：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSpecialtylog.Sl_SupervisionNumber
                    </td>

                </tr>
                <tr>
                    <td class="td1" style="width: 24%">审核人：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSpecialtylog.Sl_AuditMan
                    </td>
                    <td class="td1" style="width: 24%">天气情况：</td>
                    <td class="td2" style="width: 26%">
                        @Model.ThePlmSpecialtylog.Sl_Weather
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">主要施工情况：</td>
                    <td class="td2" style="width: 26%" colspan="3">
                        @Model.ThePlmSpecialtylog.Sl_ConstructionSituation
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">监理主要工作：</td>
                    <td class="td2" style="width: 26%" colspan="3">
                        @Model.ThePlmSpecialtylog.Sl_SupervisorJob
                    </td>
                </tr>
                <tr>
                    <td class="td1" style="width: 24%">问题及处理情况：</td>
                    <td class="td2" style="width: 26%" colspan="3">
                        @Model.ThePlmSpecialtylog.Sl_ProblemsDispose
                    </td>
                </tr>
                   <tr>
                        <td class="td1" style="width: 24%">附件：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                           <a href='/Common/UploaderFile/Uploader/?id=ZDFileID' width="710" height="460" rel="rel_WorkFlow_WorksMeasure_Attach" mask="true" target="dialog" title="附件管理">
                      <img src="/Content/themes/default/images/fj.gif" alt="查看附件" id='ZDFileID' 
                       uploaderoption="{MoudleID:@ViewBag.MoudleID,'ToSelectIDs':[@ViewBag.FileIds],'ToDeleteIDs':[@ViewBag.DeleteIds],BizDeleteURL:'/PersonnelLog/Base/Delete/',BizSaveUrl:'/PersonnelLog/Base/BatchAdd/',BizType:'SpecialtyLog_Rules',BizID:'@ViewBag.AssisId','dirWhere':'@ViewBag.DirWhere'}" />
                       </a>
                        </td>
                    </tr>
                @for (int i = 0; i < Model.ThePlmSpecialtylogSubList.Count; i++)
                {
                    int j = i + 1;
                    <tr>
                        <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">@("抽检记录")@j</td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">抽检记录编号：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_CheckNumber
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">合同段：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_ContractSection
                        </td>
                        <td class="td1" style="width: 24%">施工单位：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_ConstructionName
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">工程部位：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_ProjectPart
                        </td>
                        <td class="td1" style="width: 24%">抽检项目：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_CheckItem
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">抽检人：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_CheckMan
                        </td>
                        <td class="td1" style="width: 24%">抽检时间：</td>
                        <td class="td2" style="width: 26%">
                            @(Model.ThePlmSpecialtylogSubList[i].SlS_CheckTime == null ? "" : Convert.ToDateTime(Model.ThePlmSpecialtylogSubList[i].SlS_CheckTime).ToString("yyyy-MM-dd"))
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">抽检审核人：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_CheckAudit
                        </td>
                        <td class="td1" style="width: 24%">抽检审核日期：</td>
                        <td class="td2" style="width: 26%">
                            @(Model.ThePlmSpecialtylogSubList[i].SlS_CheckDate == null ? "" : Convert.ToDateTime(Model.ThePlmSpecialtylogSubList[i].SlS_CheckDate).ToString("yyyy-MM-dd"))
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">检查结果：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_Result
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">检查结论：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_Conclusion
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">处理意见：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSpecialtylogSubList[i].SlS_DisposeOpinion
                        </td>
                    </tr>
                   
                }
                @for (int i = 0; i < Model.ThePlmSpecialtylogYBSubList.Count; i++)
                {
                    int j = i + 1;
                    <tr>
                        <td class="td2" colspan="4" style="background-color: #e3effc; color: #045795; font-weight: bold; border: 1px solid #bbd9f9">@("隐蔽工程记录")@j</td>
                    </tr>
                   
                    <tr>
                        <td class="td1" style="width: 24%">隐蔽工程记录编号：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_CheckNumber
                        </td>
                        <td class="td1" style="width: 24%">工程名称：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_DisposeOpinion
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">检查人：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_CheckMan
                        </td>
                        <td class="td1" style="width: 24%">检查时间：</td>
                        <td class="td2" style="width: 26%">
                            @(Model.ThePlmSpecialtylogYBSubList[i].SlYS_CheckTime == null ? "" : Convert.ToDateTime(Model.ThePlmSpecialtylogYBSubList[i].SlYS_CheckTime).ToString("yyyy-MM-dd"))
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">合同段：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_ContractSection
                        </td>
                        <td class="td1" style="width: 24%">施工单位：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_ConstructionName
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">隐检部位：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_ProjectPart
                        </td>
                        <td class="td1" style="width: 24%">隐检项目：</td>
                        <td class="td2" style="width: 26%">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_CheckItem
                        </td>
                    </tr>

                    <tr>
                        <td class="td1" style="width: 24%">隐检内容：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_Result
                        </td>
                    </tr>
                    <tr>
                        <td class="td1" style="width: 24%">检查具体结论：</td>
                        <td class="td2" style="width: 26%" colspan="3">
                            @Model.ThePlmSpecialtylogYBSubList[i].SlYS_Conclusion
                        </td>
                    </tr>

                 
                }
            </table>
        </div>

        <div class="formBar">
            <ul>

                <li>
                    <button type="button" class="close btn btn-default btn-sm">取消</button>
                </li>
            </ul>
        </div>

    </div>
</form>
